import request from '@/utils/libs/request'

/**
 * 获取站点设置
 * @param params
 */
export function getSiteSetting(params: Record<string, any>) {
    return request.get('sys_setting/get_site', { params })
}

/**
 * 保存站点设置
 * @param params
 */
export function saveSiteSetting(params: Record<string, any>) {
    return request.post('sys_setting/save_site', params)
}

/**
 * 获取Footer设置
 * @param params
 */
export function getFooterSetting(params: Record<string, any>) {
    return request.get('sys_setting/get_footer', { params })
}

/**
 * 保存Footer设置
 * @param params
 */
export function saveFooterSetting(params: Record<string, any>) {
    return request.post('sys_setting/save_footer', params)
}

/**
 * 获取统计代码
 * @param params
 */
export function getJsCodeSetting(params: Record<string, any>) {
    return request.get('sys_setting/get_jscode', { params })
}

/**
 * 保存统计代码
 * @param params
 */
export function saveJsCodeSetting(params: Record<string, any>) {
    return request.post('sys_setting/save_jscode', params)
}